<?php
/**
 * @version $Id: uninstall.extensionicons2.php 269 2007-12-05 08:21:15Z nik.elkuku $
 * repo $URL: http://joomla-codebase.googlecode.com/svn/trunk/extensionicons2/administrator/components/com_extensionicons2/uninstall.extensionicons2.php $
 * Created on 14.04.2007
 * @package ExtensionIcons2
 * @author Nikolai Plath (elkuku)
 */

defined( '_JEXEC' ) or die( 'Restricted access' );

function com_uninstall()
{
	global $database, $mosConfig_absolute_path;

	// uninstall module
#	$database->setQuery( "DELETE FROM `#__modules` WHERE `module`= 'mod_extensionicons';");
#	$database->query();

#    @unlink( "$mosConfig_absolute_path/administrator/modules/mod_extensionicons.php" );
#    @unlink( "$mosConfig_absolute_path/administrator/modules/mod_extensionicons.xml" );

	echo 'Modul NICHT gel&ouml;scht <img src="images/tick.png" /><br />';
/*
 * should the custom_dir really be removed ???
 * only if empty...
 */
#	@rmdir( "$mosConfig_absolute_path/images/ExtensionIcons_custom" );

	echo "Schade, dass Sie unsere Komponente nicht mehr benutzen wollen...";
}
?>
